/**
 * 接口域名的管理
 * 开发环境与生产环境
 * 开发环境接口地址：'http://8.142.139.164:8751'
 * 测试服务器接口地址：'http://8.142.139.164:8751'
 * 正式服务器接口地址：'https://enterprise.yundaizhang.com.cn:8751'
 */
let serveUrl;
console.log(process.env.NODE_ENV, 'process.env.NODE_ENV');
if (process.env.NODE_ENV == "checkTest" || process.env.NODE_ENV == "development") {
  serveUrl = {
    // cs1: 'http://8.142.139.164:8754',
    cs: "http://8.142.139.164:8900/EnterpriseService",
    st: "http://8.142.139.164:8757/chatHub",
    rs: "http://8.142.139.164:8900/PersonnelService",
    kq: "http://8.142.139.164:8900/AttendanceService", //考勤

    // cs: 'http://39.107.26.138:8754',
    // st: 'http://39.107.26.138:8757/chatHub',
    // rs: 'http://39.107.26.138:56007',
    ac: "http://8.142.139.164:8900/YdzUnifyIdentity", // 认证中心
    dgj: "http://8.142.139.164:8900/ERPFinancialStewardService",
  };
} else if (process.env.NODE_ENV == "pre") {
  serveUrl = {
    cs: "http://39.107.26.138:8900/PreEnterpriseService",
    st: "http://39.107.26.138:8757/chatHub",
    rs: "http://39.107.26.138:8900/PrePersonnelService",
    ac: "http://39.107.26.138:8900/YdzUnifyIdentity",
    dgj: "http://8.142.139.164:8900/ERPFinancialStewardService",
  };
} else if (process.env.NODE_ENV == "prod") {
  serveUrl = {
    cs: "https://enterprise.yundaizhang.com.cn:8900/EnterpriseService",
    kq: "https://enterprise.yundaizhang.com.cn:8900/AttendanceService",
    st: "https://unify.yundaizhang.com.cn:8757/chatHub",
    rs: "https://enterprise.yundaizhang.com.cn:8900/PersonnelService",
    ac: "https://enterprise.yundaizhang.com.cn:8900/YdzUnifyIdentity",
    dgj: "https://enterprise.yundaizhang.com.cn:8900/ERPFinancialStewardService",
  };
} else if (process.env.NODE_ENV == "newProd") {
  serveUrl = {
    // cs: "https://enterprise.zhangsanfeng.vip/EnterpriseService", // 企业版
    cs: "https://zhangsanfeng.vip/EnterpriseService", // 企业版
    kq: "https://attendance.zhangsanfeng.vip/AttendanceService", // 考勤
    // st: "https://enterprise.zhangsanfeng.vip/chatHub", // 企业版推送
    st: "https://zhangsanfeng.vip/chatHub", // 企业版推送
    // rs: "https://enterprise.zhangsanfeng.vip/PersonnelService", // 人事
    rs: "https://zhangsanfeng.vip/PersonnelService", // 人事
    // ac: "https://enterprise.zhangsanfeng.vip/identity", // 认证中心
    ac: "https://zhangsanfeng.vip/identity", // 认证中心
    dgj: "https://dgj.zhangsanfeng.vip/ERPFinancialStewardService", // 大管家
  };
}

export default serveUrl;
